import request from '@/utils/request'

// 查询库存数据详情表格数据
export function palletCodeSkuList(query) {
  return request({
    url: '/ims/palletCodeSku/list',
    method: 'get',
    params: query,
  })
}

// 查询库存数据列表
export function listImsStock(query) {
  return request({
    url: '/ims_data/imsStock/list',
    method: 'get',
    params: query,
  })
}

// 查询库存数据详细
export function getImsStock(id) {
  return request({
    url: '/ims_data/imsStock/' + id,
    method: 'get',
  })
}

// 新增库存数据
export function addImsStock(data) {
  return request({
    url: '/ims_data/imsStock',
    method: 'post',
    data: data,
  })
}

// 修改库存数据
export function updateImsStock(data) {
  return request({
    url: '/ims_data/imsStock',
    method: 'put',
    data: data,
  })
}

// 删除库存数据
export function delImsStock(id) {
  return request({
    url: '/ims_data/imsStock/' + id,
    method: 'delete',
  })
}
